package by.yativem.commons.messages;

import org.apache.log4j.Logger;

import by.yativem.commons.messages.Messages.MessaegType;

public class SimpleMessage {
	public static enum Type{
		INFO,
		WARNING,
		ERROR,
	}
	
	private static final Logger log = Logger.getLogger(SimpleMessage.class);
	protected String message;
	protected Object[] params;
	protected Messages.MessaegType messaegType;
	
	public SimpleMessage(){
		messaegType = MessaegType.INFO;
	}
	
	public SimpleMessage(String msg, Object... params){
		this();
		message = msg;
		this.params = params; 
	}
	
	public SimpleMessage(String msg){
		this();
		this.message = msg;
	}
	
	public SimpleMessage(String msg, MessaegType type, Object... params){
		message = msg;
		this.params = params;
		this.messaegType = type;
	}
	
	public SimpleMessage(String msg, MessaegType type){
		this.message = msg;
		this.messaegType = type;
	}
	
	
}
